<template>
	<view class="">
		<view v-if="true" class="page">
			<!-- 导航栏 -->
			<uni-nav-bar status-bar fixed :leftWidth="0" :border="false" color="#000" title="生产记事"
				backgroundColor="#fff"></uni-nav-bar>
			<!-- 导航栏 -->

			<view class="mx24 flex flex-column">
				<view class="mt20 pl24 pr30 bgWhite flex flex-between align-center br10" style="height: 110rpx;"
					v-for="(item,index) in eventList" :key="index" @click="changeEvent(eventList[index])">
					<view class="flex align-center ">
						<image style="width: 60rpx;height: 60rpx;" :src="item.src" mode=""></image>
						<text class="ml30">{{item.title}}</text>
					</view>
					<view class="">
						<image style="width: 40rpx;height: 40rpx;" src="/static/productRecord/icon.png" mode=""></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>

	export default {
		

		data() {
			return {
				eventList: [{
					title: '生产农事记录',
					src: '/static/productRecord/yieldFarm.png',
					path: `/productPage/pages/recordList/recordList?type=${4}&title=${'生产农事记录'}`
				}, {
					title: '肥料购买及出入库记录',
					src: '/static/productRecord/manure.png',
					// path: '/productPage/pages/BuyManureRecord/BuyManureRecord '
					path: `/productPage/pages/recordList2/recordList2?type=${1}&title=${'肥料购买及出入库记录'}`
				}, {
					title: '肥料使用记录',
					src: '/static/productRecord/useManure.png',
					// path: '/productPage/pages/UseManureRecord/UseManureRecord'
					path: `/productPage/pages/recordList/recordList?type=2&title=${'肥料使用记录'}`
				}, {
					title: '农药购买及出入库记录',
					src: '/static/productRecord/pesticide.png',
					// path: '/productPage/pages/BuyPesticideRecord/BuyPesticideRecord'
					path: `/productPage/pages/recordList2/recordList2?type=2&title=${'农药购买及出入库记录'}`
				}, {
					title: '农药使用记录',
					src: '/static/productRecord/usePesticide.png',
					// path: '/productPage/pages/UsePesticideRecord/UsePesticideRecord'
					path: `/productPage/pages/recordList/recordList?type=3&title=${'农药使用记录'}`
				}, {
					title: '产品收货、销售记录',
					src: '/static/productRecord/market.png',
					// path: '/productPage/pages/productMarketRecord/productMarketRecord'
					path: `/productPage/pages/recordList/recordList?type=${1}&title=${'产品收货、销售记录'}`
				}, ]
			}
		},
		methods: {
			changeEvent(item) {
				uni.navigateTo({
					url: item.path
				})
			},

		}
	}
</script>

<style lang="scss" scoped>

</style>